<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2019/5/13
 * Time: 14:40
 */

namespace app\admin\validate;


use think\Validate;

class Groups extends Validate
{


        protected $rule = [
            'title'  =>'require|unique:AuthGroup',
            'rules'  =>'require',
            '__token__' => 'require|token'
        ];

        protected $message = [
            'title.require' => '标题必填',
            'title.unique' => '标题已存在',
            'rules.require' => '规则必选',
            '__token__.token'    => '你已经提交过了',
        ];

        protected $scene = [
            'add'=>['name','title','__token__']
        ];







}